Working
with Compressed Video Data in a Stream
AVIFile
provides several ways for you to access compressed video streams.
If you want
to display one or more frames of a compressed video stream, you can retrieve the
frames by using the AVIStreamRead
AVIFile
provides functions for decompressing a single video frame. To allocate
resources, use the AVIStreamGetFrameOpen
You can
decompress a single video frame by using the AVIStreamGetFrame05ZA4G structure. Your application can display
the DIB by using standard drawing functions or by using the DrawDib functions.
If your
application makes successive calls to AVIStreamGetFrame, the function
overwrites its buffer with each retrieved frame.
When you
finish using AVIStreamGetFrame and the decompressed DIB is in its
buffer, you can release the allocated resources by using the AVIStreamGetFrameClose
For more
information about decompressing images, see Video Compression Manager